﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Salary.Sys.Core.Threads
{
    public abstract class ThreadBase
    {
        public abstract string Name { get; }
        public abstract string Description { get; }
        public abstract DependencyInfo DependencyInfo { get; }

        public abstract IEnumerable<DependencyInfo> RequiredDependencies { get; }

        protected internal void RegisterAllProcedure()
        {

        }

        protected internal void CheckAllDependencies()
        {

        }

        internal void Initialize()
        {
            CheckAllDependencies();
            RegisterAllProcedure();
        }
    }
}
